package Builder.one;

/**
 * @ProjectName: 23种设计模式
 * @Package: Builder
 * @ClassName: Director
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/18 20:39
 * @Version: 1.0
 * 指挥：核心
 */
public class Director {
    //指挥工人按步骤来
    public Product build(Builder builder){
        builder.buildA();
        builder.buildB();
        builder.buildC();
        builder.buildD();
        return builder.getProduct();
    }
}
